package com.nmsl.masterdocker.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.masterdocker.mapper.CureMapper;
import com.nmsl.masterdocker.domain.Cure;
import com.nmsl.masterdocker.service.ICureService;

/**
 * 治疗方案Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-02-21
 */
@Service
public class CureServiceImpl implements ICureService 
{
    @Autowired
    private CureMapper cureMapper;

    /**
     * 查询治疗方案
     * 
     * @param cureId 治疗方案主键
     * @return 治疗方案
     */
    @Override
    public Cure selectCureByCureId(Long cureId)
    {
        return cureMapper.selectCureByCureId(cureId);
    }

    /**
     * 查询治疗方案列表
     * 
     * @param cure 治疗方案
     * @return 治疗方案
     */
    @Override
    public List<Cure> selectCureList(Cure cure)
    {
        return cureMapper.selectCureList(cure);
    }

    /**
     * 新增治疗方案
     * 
     * @param cure 治疗方案
     * @return 结果
     */
    @Override
    public int insertCure(Cure cure)
    {
        return cureMapper.insertCure(cure);
    }

    /**
     * 修改治疗方案
     * 
     * @param cure 治疗方案
     * @return 结果
     */
    @Override
    public int updateCure(Cure cure)
    {
        return cureMapper.updateCure(cure);
    }

    /**
     * 批量删除治疗方案
     * 
     * @param cureIds 需要删除的治疗方案主键
     * @return 结果
     */
    @Override
    public int deleteCureByCureIds(Long[] cureIds)
    {
        return cureMapper.deleteCureByCureIds(cureIds);
    }

    /**
     * 删除治疗方案信息
     * 
     * @param cureId 治疗方案主键
     * @return 结果
     */
    @Override
    public int deleteCureByCureId(Long cureId)
    {
        return cureMapper.deleteCureByCureId(cureId);
    }

    @Override
    public List<Cure> selectAllCure() {
        return cureMapper.selectAllCure();
    }
}
